﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="YongHuXXCX_YB.aspx.cs" Inherits="Web.Pages.YongShui._12.ChaXunGL.YongHuXXCX_YB" Theme="Default" %>
<%@ Register Assembly="DevExpress.Web.v15.2, Version=15.2.9.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" Namespace="DevExpress.Web" TagPrefix="dx" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title></title>
    <script src="../../../JS/jquery.js" type="text/javascript"></script>
    <script src="../../../JS/AddEditCancel.js" type="text/javascript"></script>
    <link href="../../../css/inputBgColor.css" rel="stylesheet" />
     <style type="text/css">
         body, html
         {
             padding: 0;
             margin: 0;
         }
    </style>
    <script type="text/javascript">
        $(function () {
            var height = Math.max(0, document.documentElement.clientHeight) - 120;
            //$("#condition").css("height", height);
        });
        function GVScrollToVisibleIndexOnClient(obj, index) {
            obj.SetVerticalScrollPosition(index * 25);
        }

        function first(obj, msg, key) {
            obj.SetFocusedRowIndex(0);
            hdCollection.Set(key, obj.GetRowKey(0));
            ASPxCallback1.PerformCallback(msg);
            GVScrollToVisibleIndexOnClient(obj, obj.GetFocusedRowIndex());
        }

        function last(obj, msg, key) {
            if (obj.GetFocusedRowIndex() == 0) {
                alert("当前已是第一条");
            }
            else {
                hdCollection.Set(key, obj.GetRowKey(obj.GetFocusedRowIndex() - 1));
                obj.SetFocusedRowIndex(obj.GetFocusedRowIndex() - 1);
                ASPxCallback1.PerformCallback(msg);
            }
            GVScrollToVisibleIndexOnClient(obj, obj.GetFocusedRowIndex());
        }

        function next(obj, msg, key) {
            if (obj.GetFocusedRowIndex() == obj.GetVisibleRowsOnPage() - 1) {
                alert("当前已是最后一条");
            }
            else {
                hdCollection.Set(key, obj.GetRowKey(obj.GetFocusedRowIndex() + 1));
                obj.SetFocusedRowIndex(obj.GetFocusedRowIndex() + 1);
                ASPxCallback1.PerformCallback(msg);
            }
            GVScrollToVisibleIndexOnClient(obj, obj.GetFocusedRowIndex());
        }

        function final(obj, msg, key) {
            hdCollection.Set(key, obj.GetRowKey(obj.GetVisibleRowsOnPage() - 1));
            obj.SetFocusedRowIndex(obj.GetVisibleRowsOnPage() - 1);
            ASPxCallback1.PerformCallback(msg);
            GVScrollToVisibleIndexOnClient(obj, obj.GetFocusedRowIndex());
        }
        function rowClick() {
            //debugger
            if (gvtab1.GetFocusedRowIndex() != -1) {
                hdCollection.Set("ID", gvtab1.GetRowKey(gvtab1.GetFocusedRowIndex()));
                ASPxCallback1.PerformCallback("setinfo");
            }
        }

        function rowClick2() {
            // debugger
            if (gvtab2.GetFocusedRowIndex() != -1) {
                hdCollection.Set("ID", gvtab2.GetRowKey(gvtab2.GetFocusedRowIndex()));
                ASPxCallback1.PerformCallback("hjgdxx");
            }
        }

        function ASPxCallback1Complete(rs) {
            var arr = rs.split('|');
            var type = arr[0];
            var state = arr[1];
            if (type == "setinfo") {
                txtYongHuH2.SetText(arr[2]);
                txtYongHuM2.SetText(arr[3]);
                txtYongShuiXZ.SetText(arr[4]);
                
                txtJuHao.SetText(arr[5]);
                txtJuMing.SetText(arr[6]);
                txtYongShuiJ2.SetText(arr[7]);
                txtSheShuiDXFL.SetText(arr[8]);
                txtGongSiH.SetText(arr[9]);
                txtGongSiM.SetText(arr[10]);
                txtShouFeiFS.SetText(arr[11]);
                txtYeWuY.SetText(arr[12]);
                txtXingZhengQH.SetText(arr[13]);
                txtXingZhengQM.SetText(arr[14]);
                txtZiLaiSBS.SetText(arr[25]);
                txtHuiGuanBS.SetText(arr[26]);
                //20190408 bug修改 begin ************************
                txtShiKaoHY2.SetText(arr[16]);//15改为16
                //txtKaoHeFYBZ.SetText('不考核');
                if (arr[15] != "") {
                    txtKaoHeFYBZ.SetText(arr[15] == 0 ? "不考核" : arr[15] == 1 ? "工业" : "非工业");
                }
                txtKaoHeFYBZ2.SetText(arr[15]);//16改为15
                //20190408 bug修改 end ************************
                txtYongHuDZ2.SetText(arr[17]);
                txtLianXiBM.SetText(arr[18]);
                txtLianXiR.SetText(arr[19]);
                txtLianXiDH.SetText(arr[20]);
                txtYouBian.SetText(arr[21]);
                txtKaiHuHM2.SetText(arr[22]);
                txtKaiHuYH.SetText(arr[23]);
                txtYinHangZH2.SetText(arr[24]);
                txtHangYeLX.SetText(arr[27]);
            }
            else if (type == "hjgdxx") {
                //alert(arr[2]);
                txtFYongHuH.SetText(arr[2]);
                hdCollection.Set("yyhh", arr[2]);
                gvFenHuJG.PerformCallback();
            }
        }

        function XSorYC() {
            //$("#yc").click(function () {
            $("#divInfo").toggle();
            //alert($("#divInfo").css('display'));
            if ($("#divInfo").css('display') == 'none') {
                AdjustSize(150, gvtab1);
            }
            else {
                AdjustSize(400, gvtab1);
            }
            // });
        }

        function YhZL() {
            window.open("/Pages/YongShui/1.JiChuXX/YongHuCLCX.aspx?yonghuh=" + txtYongHuH2.GetText(), '', 'width=700,height=600');
        }
    </script>
</head>
<body>
     <form id="form1" runat="server">
        <asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
        <div class="tabletitle1" align="center">
            一般考核用户信息查询
        </div>
         <div style="display: none;">
            <dx:ASPxHiddenField ID="hdCollection" ClientInstanceName="hdCollection" runat="server"></dx:ASPxHiddenField>
            <dx:ASPxCallback ID="ASPxCallback1" ClientInstanceName="ASPxCallback1" runat="server" OnCallback="ASPxCallback1_Callback" ClientSideEvents-CallbackComplete="function(s,e){ASPxCallback1Complete(e.result);}"></dx:ASPxCallback>
        </div>
        <asp:UpdatePanel ID="updatePanel1" runat="server">
            <ContentTemplate>
                <div>
                    <div style="border: 1px solid #d0e4fe" >
                        <table>
                            <tr>
                                <td>&nbsp;</td>
                                <td><span style="font-size: 12px;width:50px;">站点：</span></td>
                                <td>
                                    <asp:Panel runat="server" ID="Panel1">
                                        <dx:ASPxComboBox runat="server" ID="cmbGuanLiBM" Width="80%" AutoPostBack="true" OnSelectedIndexChanged="cmbGuanLiBM_SelectedIndexChanged">
                                            <Items>
                                                <dx:ListEditItem Text="全部" Value="" Selected="true" />
                                                
                                            </Items>
                                        </dx:ASPxComboBox>
                                    </asp:Panel>
                                </td>
                                <td><span style="font-size: 12px;">管理块：</span></td>
                                <td>
                                    <asp:Panel runat="server" ID="Panel2">
                                        <dx:ASPxComboBox runat="server" ID="cmbGuanLiK" Width="80%">
                                            <Items>
                                                <dx:ListEditItem Text="全部" Value="" Selected="true" />
                                            </Items>
                                        </dx:ASPxComboBox>
                                    </asp:Panel>
                                </td>
                                <td><span style="font-size: 12px;">业务员：</span></td>
                                <td>
                                    <asp:Panel runat="server" ID="Panel3">
                                        <dx:ASPxComboBox runat="server" ID="cmbYeWuY" Width="80%">
                                        </dx:ASPxComboBox>
                                    </asp:Panel>
                                </td>
                                <td><span style="font-size: 12px;">水量年月：</span></td>
                                <td>
                                    <dx:ASPxTextBox runat="server" ID="txtShuiLiangYM"  Width="80%" ClientInstanceName="txtShuiLiangYM">
                                        <ClientSideEvents KeyUp="function(s,e){inputNum(s);}" />
                                    </dx:ASPxTextBox>
                                </td>
                                <%--<td style="width:120px;">
                                    <asp:Panel runat="server" ID="Panel52">
                                        <dx:ASPxComboBox runat="server" ID="cmbYHLX" Width="80%">
                                            <Items>
                                                <dx:ListEditItem Text="重点考核户" Value="1" Selected="true"/>
                                                <dx:ListEditItem Text="一般考核户" Value="2"  />
                                            </Items>
                                        </dx:ASPxComboBox>
                                    </asp:Panel>
                                </td>--%>
                                 <td>
                                     <dx:ASPxLoadingPanel runat="server" ID="LoadPanel11" ClientInstanceName="LoadPanel" Text="正在查询"></dx:ASPxLoadingPanel>
                                    <dx:ASPxButton runat="server" ID="btnChaXun" Text="查询" OnClick="btnChaXun_Click">
                                        <ClientSideEvents  Click="function(s,e){LoadPanel.Show();}"/>
                                    </dx:ASPxButton>
                                </td>
                                  <td>
                                    <dx:ASPxButton ID="btnExport2" runat="server"  Text="导出EXCEL" >
                                        <ClientSideEvents Click="function(s,e){btnExport.OnClick();}"/>
                                    </dx:ASPxButton>
                                </td>  
                            </tr>
                        </table>
                    </div>
                    <dx:ASPxPageControl ID="ASPxPageControl1" runat="server" ActiveTabIndex="0" Width="99%">
                        <TabPages>
                            <dx:TabPage Text="用户信息">
                                <ContentCollection>
                                    <dx:ContentControl>
                                        <div>
                                            <div id="condition" style="float: left; border: 1px solid #d0e4fe; width: 17%; ">
                                                <table style="height: 600px; width: 100%;">
                                                    <tr>
                                                        <td style="width:45%;">
                                                            <dx:ASPxRadioButton runat="server" ID="rbnYongHuH" Text="用户号" GroupName="1" ClientInstanceName="rbnYongHuH"></dx:ASPxRadioButton>
                                                        </td>
                                                        <td>
                                                            <dx:ASPxTextBox runat="server" ID="txtYongHuH" Width="100%">
                                                                <ClientSideEvents   GotFocus="function(s,e){rbnYongHuH.SetChecked(true);}"/>
                                                            </dx:ASPxTextBox>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td>
                                                            <dx:ASPxRadioButton runat="server" ID="rbnYongHuM" Text="用户名" GroupName="1" ClientInstanceName="rbnYongHuM"></dx:ASPxRadioButton>

                                                        </td>
                                                         <td>
                                                            <dx:ASPxTextBox runat="server" ID="txtYongHuM" Width="100%">
                                                                <ClientSideEvents   GotFocus="function(s,e){rbnYongHuM.SetChecked(true);}"/>
                                                            </dx:ASPxTextBox>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td colspan="2">
                                                            <dx:ASPxRadioButton runat="server" ID="rbnYongHuDZ" Text="用户地址" GroupName="1" ClientInstanceName="rbnYongHuDZ"></dx:ASPxRadioButton>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td colspan="2">
                                                            <dx:ASPxTextBox runat="server" ID="txtYongHuDZ" Width="100%">
                                                                <ClientSideEvents   GotFocus="function(s,e){rbnYongHuDZ.SetChecked(true);}"/>
                                                            </dx:ASPxTextBox>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td>
                                                            <dx:ASPxRadioButton runat="server" ID="rbnShouFeiFS" Text="收费方式" GroupName="1" ClientInstanceName="rbnShouFeiFS"></dx:ASPxRadioButton>
                                                        </td>
                                                        <td>
                                                             <asp:Panel runat="server" ID="Panel5">
                                                                <dx:ASPxComboBox runat="server" ID="cmbShouFeiFS" Width="100%">
                                                                    <Items>
                                                                        <dx:ListEditItem Text="" Value="" Selected="true" />
                                                                        <dx:ListEditItem Text="非托收" Value="0" />
                                                                        <dx:ListEditItem Text="托收" Value="1" />
                                                                    </Items>
                                                                    <ClientSideEvents   GotFocus="function(s,e){rbnShouFeiFS.SetChecked(true);}"/>
                                                                </dx:ASPxComboBox>
                                                            </asp:Panel>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td>
                                                            <dx:ASPxRadioButton runat="server" ID="rbnYongShuiXZ" Text="用水性质" GroupName="1" ClientInstanceName="rbnYongShuiXZ"></dx:ASPxRadioButton>
                                                        </td>
                                                        <td>
                                                             <asp:Panel runat="server" ID="Panel6">
                                                                <dx:ASPxComboBox runat="server" ID="cmbYongShuiXZ" Width="100%">
                                                                    <Items>
                                                                        <dx:ListEditItem Text="" Value="" Selected="true" />
                                                                    </Items>
                                                                    <ClientSideEvents   GotFocus="function(s,e){rbnYongShuiXZ.SetChecked(true);}"/>
                                                                </dx:ASPxComboBox>
                                                            </asp:Panel>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td colspan="2">
                                                            <dx:ASPxRadioButton runat="server" ID="rbnSheShuiDXFL" Text="涉水对象分类" GroupName="1" ClientInstanceName="rbnSheShuiDXFL"></dx:ASPxRadioButton>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td>
                                                            <asp:Panel runat="server" ID="Panel7">
                                                                <dx:ASPxComboBox runat="server" ID="cmbSheShuiDXFL_q1" Width="100%">
                                                                    <Items>
                                                                        <dx:ListEditItem Text="=" Value="" Selected="true" />
                                                                        <dx:ListEditItem Text=">" Value="0" />
                                                                        <dx:ListEditItem Text=">=" Value="1" />
                                                                        <dx:ListEditItem Text="<" Value="1" />
                                                                        <dx:ListEditItem Text="<=" Value="1" />
                                                                        <dx:ListEditItem Text="<>" Value="1" />
                                                                    </Items>
                                                                    <ClientSideEvents   GotFocus="function(s,e){rbnSheShuiDXFL.SetChecked(true);}"/>
                                                                </dx:ASPxComboBox>
                                                            </asp:Panel>
                                                        </td>
                                                        <td>
                                                            <asp:Panel runat="server" ID="Panel8">
                                                                <dx:ASPxComboBox runat="server" ID="cmbSheShuiDXFL_h1" Width="100%">
                                                                   <ClientSideEvents   GotFocus="function(s,e){rbnSheShuiDXFL.SetChecked(true);}"/>
                                                                </dx:ASPxComboBox>
                                                            </asp:Panel>
                                                        </td>
                                                    </tr>
                                                     <tr>
                                                        <td>
                                                            <asp:Panel runat="server" ID="Panel9">
                                                                <dx:ASPxComboBox runat="server" ID="cmbSheShuiDXFL_q2" Width="100%">
                                                                    <Items>
                                                                        <dx:ListEditItem Text="=" Value="" Selected="true" />
                                                                        <dx:ListEditItem Text=">" Value="0" />
                                                                        <dx:ListEditItem Text=">=" Value="1" />
                                                                        <dx:ListEditItem Text="<" Value="1" />
                                                                        <dx:ListEditItem Text="<=" Value="1" />
                                                                        <dx:ListEditItem Text="<>" Value="1" />
                                                                    </Items>
                                                                    <ClientSideEvents   GotFocus="function(s,e){rbnSheShuiDXFL.SetChecked(true);}"/>
                                                                </dx:ASPxComboBox>
                                                            </asp:Panel>
                                                        </td>
                                                        <td>
                                                            <asp:Panel runat="server" ID="Panel10">
                                                                <dx:ASPxComboBox runat="server" ID="cmbSheShuiDXFL_h2" Width="100%">
                                                                   <ClientSideEvents   GotFocus="function(s,e){rbnSheShuiDXFL.SetChecked(true);}"/>
                                                                </dx:ASPxComboBox>
                                                            </asp:Panel>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td colspan="2">
                                                            <dx:ASPxRadioButton runat="server" ID="rbnShiKaoHY" Text="试考核月" GroupName="1" ClientInstanceName="rbnShiKaoHY"></dx:ASPxRadioButton>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td>
                                                            <asp:Panel runat="server" ID="Panel11">
                                                                <dx:ASPxComboBox runat="server" ID="cbmShiKaoHY" Width="100%">
                                                                    <Items>
                                                                        <dx:ListEditItem Text="=" Value="" Selected="true" />
                                                                        <dx:ListEditItem Text=">" Value="0" />
                                                                        <dx:ListEditItem Text=">=" Value="1" />
                                                                        <dx:ListEditItem Text="<" Value="1" />
                                                                        <dx:ListEditItem Text="<=" Value="1" />
                                                                        <dx:ListEditItem Text="<>" Value="1" />
                                                                    </Items>
                                                                    <ClientSideEvents   GotFocus="function(s,e){rbnShiKaoHY.SetChecked(true);}"/>
                                                                </dx:ASPxComboBox>
                                                            </asp:Panel>
                                                        </td>
                                                        <td>
                                                            <dx:ASPxTextBox runat="server" ID="txtShiKaoHY" Width="100%">
                                                                <ClientSideEvents   GotFocus="function(s,e){rbnShiKaoHY.SetChecked(true);}"/>
                                                            </dx:ASPxTextBox>
                                                        </td>
                                                    </tr>
                                                     <tr>
                                                        <td colspan="2">
                                                            <dx:ASPxRadioButton runat="server" ID="rbnYongShuiJ" Text="用水价" GroupName="1" ClientInstanceName="rbnYongShuiJ"></dx:ASPxRadioButton>                           
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td>
                                                            <asp:Panel runat="server" ID="Panel12">
                                                                <dx:ASPxComboBox runat="server" ID="cbmYongShuiJ" Width="100%">
                                                                    <Items>
                                                                        <dx:ListEditItem Text="=" Value="" Selected="true" />
                                                                        <dx:ListEditItem Text=">" Value="0" />
                                                                        <dx:ListEditItem Text=">=" Value="1" />
                                                                        <dx:ListEditItem Text="<" Value="2" />
                                                                        <dx:ListEditItem Text="<=" Value="3" />
                                                                        <dx:ListEditItem Text="<>" Value="4" />
                                                                    </Items>
                                                                    <ClientSideEvents   GotFocus="function(s,e){rbnYongShuiJ.SetChecked(true);}"/>
                                                                </dx:ASPxComboBox>
                                                            </asp:Panel>
                                                        </td>
                                                        <td>
                                                            <dx:ASPxTextBox runat="server" ID="txtYongShuiJ" Width="100%">
                                                                <ClientSideEvents   GotFocus="function(s,e){rbnYongShuiJ.SetChecked(true);}"/>
                                                            </dx:ASPxTextBox>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td>
                                                            <dx:ASPxRadioButton runat="server" ID="rbnJuXX" Text="局信息" GroupName="1" ClientInstanceName="rbnJuXX"></dx:ASPxRadioButton>
                                                        </td>
                                                        <td>
                                                            <asp:Panel runat="server" ID="Panel13">
                                                                <dx:ASPxComboBox runat="server" ID="cbmJuXX" Width="100%">
                                                                    <ClientSideEvents   GotFocus="function(s,e){rbnJuXX.SetChecked(true);}"/>
                                                                </dx:ASPxComboBox>
                                                            </asp:Panel>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td>
                                                            <dx:ASPxRadioButton runat="server" ID="rbnGongSiXX" Text="公司信息" GroupName="1" ClientInstanceName="rbnGongSiXX"></dx:ASPxRadioButton>
                                                        </td>
                                                        <td>
                                                            <asp:Panel runat="server" ID="Panel14">
                                                                <dx:ASPxComboBox runat="server" ID="cmbGongSiXX" Width="100%">
                                                                    <ClientSideEvents   GotFocus="function(s,e){rbnGongSiXX.SetChecked(true);}"/>
                                                                </dx:ASPxComboBox>
                                                            </asp:Panel>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td colspan="2">
                                                            <dx:ASPxRadioButton runat="server" ID="rbnKaiHuHM" Text="开户户名" GroupName="1" ClientInstanceName="rbnKaiHuHM"></dx:ASPxRadioButton>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td colspan="2">
                                                             <dx:ASPxTextBox runat="server" ID="txtKaiHuHM" Width="100%">
                                                                 <ClientSideEvents   GotFocus="function(s,e){rbnKaiHuHM.SetChecked(true);}"/>
                                                             </dx:ASPxTextBox>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td colspan="2">
                                                            <dx:ASPxRadioButton runat="server" ID="rbnYinHangZH" Text="银行帐号" GroupName="1" ClientInstanceName="rbnYinHangZH"></dx:ASPxRadioButton>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td colspan="2">
                                                             <dx:ASPxTextBox runat="server" ID="txtYinHangZH" Width="100%">
                                                                 <ClientSideEvents  GotFocus="function(s,e){rbnYinHangZH.SetChecked(true);}"/>
                                                             </dx:ASPxTextBox>
                                                        </td>
                                                    </tr>

                                                    <tr>
                                                        <td colspan="2">
                                                            <dx:ASPxRadioButton runat="server" ID="chkShiFouQR" Text="银行是否确认" GroupName="1" ClientInstanceName="chkShiFouQR" ClientVisible="false"></dx:ASPxRadioButton>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td colspan="2">
                                                            <asp:Panel runat="server" ID="Panel4">
                                                                <dx:ASPxComboBox runat="server" ID="cmbShiFouQR" Width="80%" ClientVisible="false">
                                                                    <Items>
                                                                        <dx:ListEditItem Text="" Value="" Selected="true" />
                                                                        <dx:ListEditItem Text="银行已确认" Value="0" />
                                                                        <dx:ListEditItem Text="银行未确认" Value="1" />
                                                                        <dx:ListEditItem Text="农行用户" Value="2" />
                                                                    </Items>
                                                                    <ClientSideEvents   GotFocus="function(s,e){chkShiFouQR.SetChecked(true);}"/>
                                                                </dx:ASPxComboBox>
                                                            </asp:Panel>
                                                        </td>
                                                    </tr>
                                                </table>
                                            </div>
                                        </div>
                                        <div style="float: right; border: 1px solid #d0e4fe; width: 82%;">
                                             <div>
                                                <table>
                                                    <tr>
                                                        <td style="width:70px;"><div onclick="first(gvtab1,'setinfo','ID');"><img src="../../../Images/first.jpg" /></div></td>
                                                        <td style="width:70px;"><div onclick="last(gvtab1,'setinfo','ID');"><img src="../../../Images/last.jpg" /></div></td>
                                                        <td style="width:70px;"><div onclick="next(gvtab1,'setinfo','ID');"><img src="../../../Images/next.jpg" /></div></td>
                                                        <td style="width:70px;"><div onclick="final(gvtab1,'setinfo','ID');"><img src="../../../Images/final.jpg" /></div></td>
                                                        <td style="width: 70px;">&nbsp;</td>
                                                        <td>
                                                            <dx:ASPxLabel ID="zjltab1" Text="共0条" runat="server" ForeColor="Blue"></dx:ASPxLabel>
                                                        </td>
                                                    </tr>
                                                </table>
                                            </div>
                                            <div>
                                                <dx:ASPxGridView ID="gvYongHuXXTab1" ClientInstanceName="gvtab1" runat="server" AutoGenerateColumns="False" KeyFieldName="ID" 
                                                  EnableCallBacks="true"   ClientIDMode="AutoID"  Settings-ShowVerticalScrollBar="true" Width="100%" >
                                                    <Columns>
                                                        <dx:GridViewDataTextColumn FieldName="用户号" Caption="用户号" Width="60px">
                                                        </dx:GridViewDataTextColumn>
                                                        <dx:GridViewDataTextColumn FieldName="用户名" Caption="用户名" Width="240">
                                                        </dx:GridViewDataTextColumn>
                                                        <dx:GridViewDataTextColumn FieldName="用户地址" Caption="用户地址" Width="240">
                                                        </dx:GridViewDataTextColumn>
                                                        <dx:GridViewDataTextColumn FieldName="用水性质" Caption="用水性质" Width="140">
                                                        </dx:GridViewDataTextColumn>
                                                        <dx:GridViewDataTextColumn FieldName="用水价" Caption="用水价" Width="50">
                                                        </dx:GridViewDataTextColumn>
                                                        <dx:GridViewDataTextColumn FieldName="考核复用" Caption="考核复用" Width="65">
                                                            <DataItemTemplate>
                                                                <%#Eval("考核复用").ToString()=="0"?"不考核":Eval("考核复用").ToString()=="1"?"工业":"非工业" %>
                                                            </DataItemTemplate>
                                                        </dx:GridViewDataTextColumn>
                                                        <dx:GridViewDataTextColumn FieldName="收费方式" Caption="收费方式" Width="65">
                                                        </dx:GridViewDataTextColumn>
                                                        <dx:GridViewDataTextColumn FieldName="试考核月" Caption="试考核月" Width="65">
                                                        </dx:GridViewDataTextColumn>
                                                        <dx:GridViewDataTextColumn FieldName="业务员" Caption="业务员" Width="60">
                                                        </dx:GridViewDataTextColumn>
                                                        <dx:GridViewDataTextColumn FieldName="I_ZLSBS" Caption="自来水表数" Width="75">
                                                        </dx:GridViewDataTextColumn>
                                                        <dx:GridViewDataTextColumn FieldName="I_HGBS" Caption="回灌水表数" Width="75">
                                                        </dx:GridViewDataTextColumn>
                                                       <%-- <dx:GridViewDataTextColumn FieldName="" Caption="连续加价状态" Width="85">
                                                        </dx:GridViewDataTextColumn>
                                                        <dx:GridViewDataTextColumn FieldName="" Caption="连续加价次数" Width="85">
                                                        </dx:GridViewDataTextColumn>--%>
                                                        <dx:GridViewDataTextColumn FieldName="行政区" Caption="行政区" Width="60">
                                                        </dx:GridViewDataTextColumn>
                                                        <dx:GridViewDataTextColumn FieldName="局号" Caption="局号" Width="50">
                                                        </dx:GridViewDataTextColumn>
                                                        <dx:GridViewDataTextColumn FieldName="局名" Caption="局名" Width="200">
                                                        </dx:GridViewDataTextColumn>
                                                        <dx:GridViewDataTextColumn FieldName="公司号" Caption="公司号" Width="50">
                                                        </dx:GridViewDataTextColumn>
                                                        <dx:GridViewDataTextColumn FieldName="公司名" Caption="公司名" Width="200">
                                                        </dx:GridViewDataTextColumn>
                                                        <dx:GridViewDataTextColumn FieldName="管理块" Caption="管理块" Width="60">
                                                        </dx:GridViewDataTextColumn>
                                                        <dx:GridViewDataTextColumn FieldName="邮编" Caption="邮编" Width="60">
                                                        </dx:GridViewDataTextColumn>
                                                        <dx:GridViewDataTextColumn FieldName="联系部门" Caption="联系地址" Width="200">
                                                        </dx:GridViewDataTextColumn>
                                                        <dx:GridViewDataTextColumn FieldName="联系人" Caption="联系人" Width="120">
                                                        </dx:GridViewDataTextColumn>
                                                        <dx:GridViewDataTextColumn FieldName="联系电话" Caption="联系电话" Width="200">
                                                        </dx:GridViewDataTextColumn>
                                                        <dx:GridViewDataTextColumn FieldName="开户户名" Caption="开户户名" Width="250">
                                                        </dx:GridViewDataTextColumn>
                                                        <dx:GridViewDataTextColumn FieldName="银行账号" Caption="银行帐号" Width="200">
                                                        </dx:GridViewDataTextColumn>
                                                        <dx:GridViewDataTextColumn FieldName="开户银行" Caption="开户银行" Width="220">
                                                        </dx:GridViewDataTextColumn>
                                                        <dx:GridViewDataTextColumn FieldName="S_HANGYELEIXMC" Caption="行业类型" Width="65">
                                                        </dx:GridViewDataTextColumn>
                                                        <dx:GridViewDataTextColumn FieldName="S_SHESHUIDXFLMC" Caption="涉水对象分类" Width="150">
                                                        </dx:GridViewDataTextColumn>
                                                        <dx:GridViewDataTextColumn FieldName="原用户号" Caption="原用户号" Width="60">
                                                        </dx:GridViewDataTextColumn>
                                                        <dx:GridViewDataTextColumn FieldName="立户日期" Caption="立户日期" Width="85" PropertiesTextEdit-DisplayFormatString="yyyy-MM-dd">
                                                        </dx:GridViewDataTextColumn>
                                                        <dx:GridViewDataTextColumn FieldName="目前状态" Caption="目前状态" Width="75">
                                                        </dx:GridViewDataTextColumn>
                                                        <%--<dx:GridViewDataTextColumn FieldName="" Caption="户籍行为" Width="75">
                                                        </dx:GridViewDataTextColumn>--%>
                                                        <dx:GridViewDataTextColumn FieldName="户籍修改日期" Caption="户籍管理日期" Width="85" PropertiesTextEdit-DisplayFormatString="yyyy-MM-dd">
                                                        </dx:GridViewDataTextColumn>
                                                        <dx:GridViewDataTextColumn FieldName="修改日期" Caption="修改日期" Width="85" PropertiesTextEdit-DisplayFormatString="yyyy-MM-dd">
                                                        </dx:GridViewDataTextColumn>
                                                        <dx:GridViewDataTextColumn FieldName="修改人" Caption="修改人" Width="80">
                                                        </dx:GridViewDataTextColumn>
                                                         <dx:GridViewDataTextColumn FieldName="BEIAN" Caption="备案" Width="200">
                                                        </dx:GridViewDataTextColumn>
                                                    </Columns>
                                                    <%--<SettingsBehavior ColumnResizeMode="NextColumn" />
                                                    <SettingsBehavior AllowFocusedRow="True"  ColumnResizeMode="Control" />
                                                    <Settings GridLines="Vertical" ShowFilterRow="false" />
                                                    <Settings ShowHorizontalScrollBar="True" />
                                                    <Settings ShowFooter="True" />
                                                    <SettingsPager PageSize="15" />--%>
                                                    
                                                    <Settings  VerticalScrollBarMode="Visible" VerticalScrollableHeight="300" HorizontalScrollBarMode="Auto"/>
                                                    <SettingsPager Mode="EndlessPaging" PageSize="100"  FirstPageButton-Visible="true" />
                                                     <ClientSideEvents FocusedRowChanged="function(s,e){rowClick();}" />
                                                    <SettingsBehavior ProcessFocusedRowChangedOnServer="false" />
                                                   
                                                    <%--<ClientSideEvents Init="function(s,e){AdjustSize(280,gvYongHuXX);}"  />--%>
                                                </dx:ASPxGridView>
                                            </div>
                                            <div>
                                                 <input type="button" id="yc" value="隐藏或显示详情" name="btnTest"  onclick="XSorYC()"/>
                                                 <input type="button" id="yhzl" value="用户资料上传详情" name="yhzl" onclick="YhZL()"/>
                                            </div>
                                            <hr />
                                            <div id="divInfo" style="margin-top:10px; display:block;">
                                                <table style="text-align: right;  width: 100%;">
                                                    <tr>
                                                        <td style="width:9%;"><span style="font-size: 12px;">用户号：</span></td>
                                                        <td style="width:13%;">
                                                            <dx:ASPxTextBox runat="server" ID="txtYongHuH2"  Width="80%"  ClientEnabled="false" ClientInstanceName="txtYongHuH2"></dx:ASPxTextBox>
                                                        </td>
                                                        <td style="width:9%;"><span style="font-size: 12px;">用户名：</span></td>
                                                        <td style="width:16%;">
                                                            <dx:ASPxTextBox runat="server" ID="txtYongHuM2"  Width="100%" ClientEnabled="false" ClientInstanceName="txtYongHuM2"></dx:ASPxTextBox>
                                                        </td>
                                                        <td style="width:12%;"><span style="font-size: 12px;">用水性质：</span></td>
                                                        <td style="width:16%;">
                                                            <dx:ASPxTextBox runat="server" ID="txtYongShuiXZ"  Width="80%" ClientEnabled="false" ClientInstanceName="txtYongShuiXZ"></dx:ASPxTextBox>
                                                        </td>
                                                        <td style="width:9%;"><span style="font-size: 12px;">行业类型：</span></td>
                                                        <td style="width:16%;">
                                                            <dx:ASPxTextBox runat="server" ID="txtHangYeLX"  Width="100%" ClientEnabled="false" ClientInstanceName="txtHangYeLX"></dx:ASPxTextBox>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td><span style="font-size: 12px;">局号：</span></td>
                                                        <td>
                                                            <dx:ASPxTextBox runat="server" ID="txtJuHao"  Width="80%" ClientEnabled="false" ClientInstanceName="txtJuHao"></dx:ASPxTextBox>
                                                        </td>
                                                        <td><span style="font-size: 12px;">局名：</span></td>
                                                        <td>
                                                            <dx:ASPxTextBox runat="server" ID="txtJuMing"  Width="100%" ClientEnabled="false" ClientInstanceName="txtJuMing"></dx:ASPxTextBox>
                                                        </td>
                                                        <td><span style="font-size: 12px;">用水价：</span></td>
                                                        <td>
                                                            <dx:ASPxTextBox runat="server" ID="txtYongShuiJ2"  Width="80%" ClientEnabled="false" ClientInstanceName="txtYongShuiJ2"></dx:ASPxTextBox>
                                                        </td>
                                                        <td><span style="font-size: 12px;">涉水对象分类：</span></td>
                                                        <td>
                                                            <dx:ASPxTextBox runat="server" ID="txtSheShuiDXFL"  Width="100%" ClientEnabled="false" ClientInstanceName="txtSheShuiDXFL"></dx:ASPxTextBox>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td><span style="font-size: 12px;">公司号：</span></td>
                                                        <td>
                                                            <dx:ASPxTextBox runat="server" ID="txtGongSiH"  Width="80%" ClientEnabled="false" ClientInstanceName="txtGongSiH"></dx:ASPxTextBox>
                                                        </td>
                                                        <td><span style="font-size: 12px;">公司名：</span></td>
                                                        <td>
                                                            <dx:ASPxTextBox runat="server" ID="txtGongSiM"  Width="100%" ClientEnabled="false" ClientInstanceName="txtGongSiM"></dx:ASPxTextBox>
                                                        </td>
                                                        <td><span style="font-size: 12px;">收费方式：</span></td>
                                                        <td>
                                                            <dx:ASPxTextBox runat="server" ID="txtShouFeiFS"  Width="80%" ClientEnabled="false" ClientInstanceName="txtShouFeiFS"></dx:ASPxTextBox>
                                                        </td>
                                                        <td>
                                                            <span style="font-size: 12px;">业务员：</span>
                                                           
                                                        </td>
                                                        <td>
                                                             <dx:ASPxTextBox runat="server" ID="txtYeWuY"  Width="100%" ClientEnabled="false" ClientInstanceName="txtYeWuY"></dx:ASPxTextBox>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td><span style="font-size: 12px;">行政区号：</span></td>
                                                        <td>
                                                            <dx:ASPxTextBox runat="server" ID="txtXingZhengQH"  Width="80%" ClientEnabled="false" ClientInstanceName="txtXingZhengQH"></dx:ASPxTextBox>
                                                        </td>
                                                        <td><span style="font-size: 12px;">行政区名：</span></td>
                                                        <td>
                                                            <dx:ASPxTextBox runat="server" ID="txtXingZhengQM"  Width="100%" ClientEnabled="false" ClientInstanceName="txtXingZhengQM"></dx:ASPxTextBox>
                                                        </td>
                                                        <td><span style="font-size: 12px;">自来水表数：</span></td>
                                                        <td>
                                                            <dx:ASPxTextBox runat="server" ID="txtZiLaiSBS"  Width="80%" ClientEnabled="false" ClientInstanceName="txtZiLaiSBS"></dx:ASPxTextBox>
                                                        </td>
                                                        <td>
                                                            <span style="font-size: 12px;">回灌表数：</span>
                                                           
                                                        </td>
                                                        <td>
                                                             <dx:ASPxTextBox runat="server" ID="txtHuiGuanBS"  Width="100%" ClientEnabled="false" ClientInstanceName="txtHuiGuanBS"></dx:ASPxTextBox>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td><span style="font-size: 12px;">试考核月：</span></td>
                                                        <td>
                                                            <dx:ASPxTextBox runat="server" ID="txtShiKaoHY2"  Width="80%" ClientEnabled="false" ClientInstanceName="txtShiKaoHY2"></dx:ASPxTextBox>
                                                        </td>
                                                        
                                                       
                                                        <td><span style="font-size: 12px;">考核复用标志：</span></td>
                                                        <td>
                                                            <dx:ASPxTextBox runat="server" ID="txtKaoHeFYBZ"  Width="100%" ClientEnabled="false" ClientInstanceName="txtKaoHeFYBZ"></dx:ASPxTextBox>
                                                        </td>
                                                        <td>
                                                             <dx:ASPxTextBox runat="server" ID="txtKaoHeFYBZ2"  Width="100%" ClientEnabled="false" ClientInstanceName="txtKaoHeFYBZ2"></dx:ASPxTextBox>
                                                        </td>
                                                        <td></td> <td></td> <td></td>
                                                    </tr>
                                                    <tr>
                                                        <td><span style="font-size: 12px;">用户地址：</span></td>
                                                        <td colspan="2">
                                                            <dx:ASPxTextBox runat="server" ID="txtYongHuDZ2"  Width="100%" ClientEnabled="false" ClientInstanceName="txtYongHuDZ2"></dx:ASPxTextBox>
                                                        </td>
                                                        
                                                        <td><span style="font-size: 12px;">联系部门：</span></td>
                                                        <td colspan="2">
                                                            <dx:ASPxTextBox runat="server" ID="txtLianXiBM"  Width="100%" ClientEnabled="false" ClientInstanceName="txtLianXiBM"></dx:ASPxTextBox>
                                                        </td>
                                                        <td></td>
                                                        <td></td>
                                                    </tr>
                                                    <tr>
                                                        <td><span style="font-size: 12px;">联系人：</span></td>
                                                        <td colspan="2">
                                                            <dx:ASPxTextBox runat="server" ID="txtLianXiR"  Width="100%" ClientEnabled="false" ClientInstanceName="txtLianXiR"></dx:ASPxTextBox>
                                                        </td>
                                                        
                                                        <td><span style="font-size: 12px;">联系电话：</span></td>
                                                        <td colspan="2">
                                                            <dx:ASPxTextBox runat="server" ID="txtLianXiDH"  Width="100%" ClientEnabled="false" ClientInstanceName="txtLianXiDH"></dx:ASPxTextBox>
                                                        </td>
                                                        <td><span style="font-size: 12px;">邮编：</span></td>
                                                        <td>
                                                            <dx:ASPxTextBox runat="server" ID="txtYouBian"  Width="100%" ClientEnabled="false" ClientInstanceName="txtYouBian"></dx:ASPxTextBox>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td><span style="font-size: 12px;">开户户名：</span></td>
                                                        <td colspan="2">
                                                            <dx:ASPxTextBox runat="server" ID="txtKaiHuHM2"  Width="100%" ClientEnabled="false" ClientInstanceName="txtKaiHuHM2"></dx:ASPxTextBox>
                                                        </td>
                                                        
                                                        <td><span style="font-size: 12px;">开户银行：</span></td>
                                                        <td colspan="2">
                                                            <dx:ASPxTextBox runat="server" ID="txtKaiHuYH"  Width="100%" ClientEnabled="false" ClientInstanceName="txtKaiHuYH"></dx:ASPxTextBox>
                                                        </td>
                                                        <td><span style="font-size: 12px;">银行账号：</span></td>
                                                        <td>
                                                            <dx:ASPxTextBox runat="server" ID="txtYinHangZH2"  Width="100%" ClientEnabled="false" ClientInstanceName="txtYinHangZH2"></dx:ASPxTextBox>
                                                        </td>
                                                    </tr>
                                                </table>
                                            </div>
                                        </div>

                                    </dx:ContentControl>
                                </ContentCollection>
                            </dx:TabPage>
                           
                        </TabPages>
                    </dx:ASPxPageControl>
                    
                </div>
            </ContentTemplate>

        </asp:UpdatePanel>
          
          <div style="display: none;">
            <dx:ASPxGridViewExporter ID="ASPxGridViewExporter1" runat="server"></dx:ASPxGridViewExporter>
            <dx:ASPxButton ID="btnExport" runat="server" ClientInstanceName="btnExport" Text="导出EXCEL" OnClick="btnExport_Click" UseSubmitBehavior="false">
            </dx:ASPxButton>
        </div>  
    </form>
</body>
</html>
